package de.baumann.browser.present.explore

import de.baumann.browser.api.OdinObserver
import de.baumann.browser.api.net.vo.explore.OdinDestroyMineTeamBean
import de.baumann.browser.base.BasePresenter
import de.baumann.browser.iview.explore.ITeamOdinDestroyRecordView
import de.baumann.browser.model.ExploreApiMode

class TeamOdinDestroyPresenter : BasePresenter<ITeamOdinDestroyRecordView>() {
    fun getOdinDestroyList() {
        ExploreApiMode()
                .getExploreTeamOdinDestroy().subscribe(object : OdinObserver<List<OdinDestroyMineTeamBean>>() {
                    override fun onSuccess(data: List<OdinDestroyMineTeamBean>) {
                        view?.getDestroy(data)
                    }
                })
    }
}